﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using T.FAS.Runtime.Metadata.Entity.Page;
using T.ServiceComponent.Database.Service;

namespace T.FAS.Runtime.Page.Dao
{
    public class ThemeMetaDataLogic
    {
        readonly ThemeMetaDataDao themeMetaDataDao = new ThemeMetaDataDao();
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="themeMetaData"></param>
        public void AddThemeMetaData(ThemeMetaData themeMetaData)
        {
            themeMetaDataDao.Add(new List<object> { themeMetaData });
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ID"></param>
        public void DeleteThemeMetaData(string ID)
        {
            themeMetaDataDao.Delete(new List<string> { ID });
        }
        /// <summary>
        /// 根据ID查询
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public ThemeMetaData GetThemeMetaData(string ID)
        {
            ThemeMetaData themeMetaData = themeMetaDataDao.GetObject(ID);
            return themeMetaData;
        }
    }
}
